﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Swork03_28.Api.Application.Commands.FarmedCommand
{
    public class FarmedCreateCommand:IRequest<int>
    {

        public int Id { get; set; }

        /// <summary>
        /// 品种
        /// </summary>
        [StringLength(100)]
        public string? Breed { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        [StringLength(100)]
        public string? Source { get; set; }

        /// <summary>
        /// 饲养天数
        /// </summary>
        public int Feeding { get; set; }

        /// <summary>
        /// 饲料品牌
        /// </summary>
        [StringLength(100)]
        public string? Brand { get; set; }

        /// <summary>
        /// 饲养负责人
        /// </summary>
        [StringLength(100)]
        public string? Principal { get; set; }

        /// <summary>
        /// 出栏日期
        /// </summary>
        public DateTime PublicationDate { get; set; }

        /// <summary>
        /// 动检证
        /// </summary>
        public string? Certificate { get; set; }

        /// <summary>
        /// 养殖场编号
        /// </summary>
        public int FarmId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchId { get; set; }
    }
}
